import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('./home/views/Index.vue')
  },
  {
    path: '/shuffle/:id(\\d+)',
    component: () => import('./shuffle/views/Index.vue')
  },
  {
    path: '/shuffle/:id(\\d+)/:key',
    component: () => import('./shuffle/views/Index.vue')
  },
  {
    path: '/dashboard/:id(\\d+)',
    component: () => import('./dashboard/views/Index.vue')
  }
]

export const router = createRouter({
  history: createWebHistory(),
  routes: routes
})

export default router
